package top.continew.admin.req.wecom;

import cn.shengchao.examstar.rpc.uddsys.req.DistributeUserInviteSaveDto;
import cn.shengchao.examstar.rpc.wecom.dto.CpUserInviteSaveDto;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * @program: examstar-manger-api
 * @description: 修改企微邀请关系保存
 * @author: Xiong weiqiang
 * @create: 2025-05-01 12:31
 */
@Data
public class CpUserInviteSaveRto  {
    /**
     * 用户id
     */
    @NotNull(message = "用户不能为空")
    private Long userId;

    /**
     * 分销用户(0平台，其他是分销体系用户）
     */
    @NotNull(message = "推广用户不能为空")
    private Long distributeUserId;

    private String wxCpUserId;

    public CpUserInviteSaveDto toSaveRto(){
        CpUserInviteSaveDto userInviteSaveDto = new CpUserInviteSaveDto();
        userInviteSaveDto.setUserId(this.userId);
        userInviteSaveDto.setInviteUserId(this.distributeUserId);
        userInviteSaveDto.setDistributeUserId(this.distributeUserId);
        userInviteSaveDto.setInviteWxCpUserId(wxCpUserId);
        return userInviteSaveDto;
    }
}